<template>
    <el-card shadow="never" style="border: 0;">
        <yun-form
                :data="row"
                :columns="columns">
                <template #default>
                    {:token_field()}
                </template>
        </yun-form>
    </el-card>
</template>
<script>
    import form from "@components/Form.js";
    export default{
        components:{
            'YunForm':form
        },
        data:{
            row:Yunqi.data.row,
            columns:[
                {field:"id",title:"ID",edit:"hidden"},
                {field:"title",title:"名称",edit:"text",rules:"required"},
                {field:"phone",title:"电话",edit:"text",rules:"required"},
                {field:"goods",title:"销售商品",edit:{form:'select',multiple: true},searchList:Yunqi.data.goods},
                {field:"sub_mch_id",title:"微信商户号",edit:"text",rules:"required"},
                {
                    field:"delivery_endtime",
                    title:"每日配送时间",
                    edit:"time",
                    rules:"required"
                },
                {
                    field:"user_id",
                    title:"绑定用户",
                    edit:{"form":"selectpage","url":"user/index/index","labelField":"nickname","keyField":"id","multiple":true},
                },
                {field:"status", width:100,title:"状态",edit:"switch","searchList":{"normal":"正常","hidden":"隐藏"}},
            ]
        }
    }
</script>
<style>

</style>

